<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="发布人姓名或者订单号"/>
                </i-col>
                <i-col span="4">
                    <i-input v-model="q.phone" @on-enter="query" placeholder="发布人手机号"/>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.qstatus">
                        <i-option value="0">待出售</i-option>
                        <i-option value="100">待付款</i-option>
                        <i-option value="110">待确认/待付款</i-option>
                        <i-option value="120">待确认</i-option>
                        <i-option value="200">已完成</i-option>
                        <i-option value="400">已撤销</i-option>
                        <i-option value="402">订单申诉</i-option>
                        <i-option value="500">已删除</i-option>
                    </i-select>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.qtype">
                        <i-option value="0">我要卖</i-option>
                        <i-option value="1">我要买</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("otcsaleorder:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("otcsaleorder:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("otcsaleorder:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="otcSaleorder" :rules="ruleValidate" :label-width="80">
            <Form-item label="订单编号" prop="saleordersn">
                <i-input v-model="otcSaleorder.saleordersn" placeholder="订单编号"/>
            </Form-item>
            <!--<Form-item label="用户id" prop="userid">
                <i-input v-model="otcSaleorder.userid" placeholder="用户id"/>
            </Form-item>-->
            <Form-item label="订单状态" prop="orderstatus">
                <i-input v-model="otcSaleorder.orderstatus" placeholder=""/>
            </Form-item>
            <Form-item label="留言" prop="postscript">
                <i-input v-model="otcSaleorder.postscript" placeholder="留言"/>
            </Form-item>
            <Form-item label="单价" prop="untilprice">
                <i-input v-model="otcSaleorder.untilprice" placeholder="单价"/>
            </Form-item>
            <Form-item label="数量" prop="number">
                <i-input v-model="otcSaleorder.number" placeholder="数量"/>
            </Form-item>
            <Form-item label="交易金额" prop="totalmoney">
                <i-input v-model="otcSaleorder.totalmoney" placeholder="交易金额"/>
            </Form-item>
            <Form-item label="交易币种 1spc 2dspc" prop="transactioncoin">
                <i-input v-model="otcSaleorder.transactioncoin" placeholder="交易币种 1spc 2dspc"/>
            </Form-item>
            <Form-item label="支付币种 1人民币" prop="paycoin">
                <i-input v-model="otcSaleorder.paycoin" placeholder="支付币种 1人民币"/>
            </Form-item>
            <Form-item label="手续费率" prop="feerate">
                <i-input v-model="otcSaleorder.feerate" placeholder="手续费率"/>
            </Form-item>
            <Form-item label="付款方式" prop="paymodel">
                <i-input v-model="otcSaleorder.paymodel" placeholder="付款方式 10 银行卡 20支付宝 30微信"/>
            </Form-item>
            <Form-item label="付款期限" prop="paylimit">
                <i-input v-model="otcSaleorder.paylimit" placeholder="付款期限"/>
            </Form-item>
            <Form-item label="溢价比率" prop="premiumrate">
                <i-input v-model="otcSaleorder.premiumrate" placeholder="溢价比率"/>
            </Form-item>
            <Form-item label="订单类型" prop="type">
                <i-input v-model="otcSaleorder.type" placeholder="订单类型：10购买订单，20出售订单，30购买成交单，40出售成交单"/>
            </Form-item>
            <Form-item label="发布人" prop="username">
                <i-input v-model="otcSaleorder.username" placeholder=""/>
            </Form-item>
            <Form-item label="参考号" prop="referencenum">
                <i-input v-model="otcSaleorder.referencenum" placeholder=""/>
            </Form-item>
            <Form-item label="创建日期" prop="createdat">
                <i-input v-model="otcSaleorder.createdat" placeholder="创建日期"/>
            </Form-item>
            <Form-item label="更新日期" prop="updatedat">
                <i-input v-model="otcSaleorder.updatedat" placeholder="更新日期"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/otcsaleorder.js?_${date.systemTime}"></script>
</body>
</html>